package misc;

import j_util.Utiles;
import model.MarksExportManager;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.RandomAccessFile;
import java.util.Date;

/**
 * @author Jose Martin Rozanec;
 */
public class Setup {
    public static void setupServer(boolean deleteFiles) {
        MarksExportManager.setup(deleteFiles);
    }

    public static void main(String[] args) {
        try {
            Utiles.createDirectory("InstitutoMadero"+ File.separatorChar +"UniversidadAustral"+File.separatorChar +"prueba"+File.separatorChar +"algoMas"+File.separatorChar +"eval"+((new Date()).toString().replace(":","")));
            RandomAccessFile raf = new RandomAccessFile("InstitutoMadero"+ File.separatorChar +"UniversidadAustral"+File.separatorChar +"prueba"+File.separatorChar +"algoMas"+File.separatorChar +"eval"+((new Date()).toString().replace(":",""))+File.separatorChar +"hola.txt","rw");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}
